import os
from dotenv import load_dotenv

load_dotenv('.env', verbose=True)

REDIS_URL = os.environ.get('REDIS_URL', '')
REDIS_PASSWORD = os.environ.get('REDIS_PASSWORD', '')
print(f'redis_url:{REDIS_URL}')
# celery settings
CELERY_BROKER_URL = f'redis://:{REDIS_PASSWORD}@{REDIS_URL}:6379/0'
CELERY_RESULT_BACKEND = f'redis://:{REDIS_PASSWORD}@{REDIS_URL}:6379/0'
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'UTC'
